package com.weir.weirdb.user.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 系统日志
 * </p>
 *
 * @author weir
 * @since 2018-11-27
 */
public class SysLog extends Model<SysLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 请求类型
     */
    private String type;

    /**
     * 主题
     */
    private String title;

    /**
     * 访问地址
     */
    private String remoteAddr;

    /**
     * 请求连接
     */
    private String requestUri;

    /**
     * 请求方法
     */
    private String httpMethod;

    /**
     * 接口方法
     */
    private String classMethod;

    /**
     * 参数
     */
    private String params;

    /**
     * session
     */
    private String sessionId;

    /**
     * 返回结果
     */
    private String response;

    /**
     * 方法执行时间
     */
    private Integer useTime;

    /**
     * 请求浏览器
     */
    private String browser;

    /**
     * 区
     */
    private Integer areaId;

    /**
     * 省
     */
    private Integer provId;

    /**
     * 市
     */
    private Integer cityId;

    /**
     * 服务提供商
     */
    private String isp;

    /**
     * 异常
     */
    private String exception;

    /**
     * 备注
     */
    private String remarks;

    private Boolean delFlag;

    /**
     * 链主代码
     */
    private String clientCode;

    /**
     * 维护交易代码
     */
    private String businessCode;

    /**
     * 创建者
     */
    private Long createUserId;

    /**
     * 创建者账号
     */
    private String createUsername;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改者
     */
    private Long updateUserId;

    /**
     * 修改者账号
     */
    private String updateUsername;

    /**
     * 更新日期
     */
    private LocalDateTime updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemoteAddr() {
        return remoteAddr;
    }

    public void setRemoteAddr(String remoteAddr) {
        this.remoteAddr = remoteAddr;
    }

    public String getRequestUri() {
        return requestUri;
    }

    public void setRequestUri(String requestUri) {
        this.requestUri = requestUri;
    }

    public String getHttpMethod() {
        return httpMethod;
    }

    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    public String getClassMethod() {
        return classMethod;
    }

    public void setClassMethod(String classMethod) {
        this.classMethod = classMethod;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public Integer getUseTime() {
        return useTime;
    }

    public void setUseTime(Integer useTime) {
        this.useTime = useTime;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public Integer getProvId() {
        return provId;
    }

    public void setProvId(Integer provId) {
        this.provId = provId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getIsp() {
        return isp;
    }

    public void setIsp(String isp) {
        this.isp = isp;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    public String getClientCode() {
        return clientCode;
    }

    public void setClientCode(String clientCode) {
        this.clientCode = clientCode;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUsername() {
        return updateUsername;
    }

    public void setUpdateUsername(String updateUsername) {
        this.updateUsername = updateUsername;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysLog{" +
        "id=" + id +
        ", type=" + type +
        ", title=" + title +
        ", remoteAddr=" + remoteAddr +
        ", requestUri=" + requestUri +
        ", httpMethod=" + httpMethod +
        ", classMethod=" + classMethod +
        ", params=" + params +
        ", sessionId=" + sessionId +
        ", response=" + response +
        ", useTime=" + useTime +
        ", browser=" + browser +
        ", areaId=" + areaId +
        ", provId=" + provId +
        ", cityId=" + cityId +
        ", isp=" + isp +
        ", exception=" + exception +
        ", remarks=" + remarks +
        ", delFlag=" + delFlag +
        ", clientCode=" + clientCode +
        ", businessCode=" + businessCode +
        ", createUserId=" + createUserId +
        ", createUsername=" + createUsername +
        ", createTime=" + createTime +
        ", updateUserId=" + updateUserId +
        ", updateUsername=" + updateUsername +
        ", updateTime=" + updateTime +
        "}";
    }
}
